home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
snip9611.zip
/
DO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-24
|
400b
|
21 lines
/* +++Date last modified: 02-Nov-1995 */
/*
** DO.C - a simple facility for specifying multiple commands
*/
#include <stdio.h>
#include <stdlib.h>
main(int argc, char *argv[])
{
if (2 > argc)
{
puts("Usage: DO \"DOS command 1\" \"DOS command 2\" ...");
return -1;
}
while (--argc)
system(*++argv);
return 0;
}